package soundsystem;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Application {
    public static void main(String[] args) throws InterruptedException {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(CDPlayerConfig.class);
        CompactDisc c=(CompactDisc)applicationContext.getBean("compactDisc");
        c.play();
        Thread.sleep(100000);
    }
}
